/**
 * 
 */
package ar.edu.unq.tpi.uis.tepe3.dominio;



import java.util.List;

import org.omg.CORBA.UserException;

/**
 * @author daniel
 *
 */
public class User extends Grantable {

	/**
	 * 
	 * daniel
	 * 11/05/2011
	 */
	
	private String pass;
	private List<Group> grupos;
	
	
	/**
	 * @param pass the pass to set
	 * @throws UserException 
	 */
	@SuppressWarnings("serial")
	public User() throws UserException {
		throw new UserException("No se puede crear un usuairio sin nombre ni PASS") {
		};
	}
	
	@SuppressWarnings("serial")
	public User(String aName) throws UserException {
		throw new UserException("No se puede crear un usuairio sin pass") {
		};
	}

	/**
	 * @param aName
	 * daniel
	 * 11/05/2011
	 */
	public User(String aName, String aPass) {
		super(aName);
		this.setPass(aPass);
	}
	
	public void setPass(String pass) {
		this.pass = pass;
	}

	/**
	 * @return the pass
	 */
	public String getPass() {
		return pass;
	}



}
